gusucode.com > 现代通信系统——使用MATLAB(+全部程序) > 现代通信系统——使用MATLAB(+全部程序)/现代通信系统——使用MATLAB(+全部程序)/Matlab 程序/Chapter5/ip_05_10.m
% MATLAB script for Illustrative Problem 5.10. echo on SNRindB=0:2:10; for i=1:length(SNRindB), % simulated error rate smld_err_prb(i)=smldP510(SNRindB(i)); echo off; end; echo on; % Plotting commands follow semilogy(SNRindB,smld_err_prb,'*');